home *** CD-ROM | disk | FTP | other *** search
/ Champak 50 / Volume 50 - JOGO DISK .iso / Games / moonstonemadness.swf / scripts / __Packages / SideScroller / NegativeGround.as < prev    next >
Text File  |  2007-09-27  |  936b  |  38 lines

  1. class SideScroller.NegativeGround
  2. {
  3.    static var DEFAULT_NEGATIVE_GROUND_POSITION = 600;
  4.    function NegativeGround(__mcRef, __oParentObject, __nGroundPos)
  5.    {
  6.       this.mcRef = __mcRef;
  7.       this.oParentObject = __oParentObject;
  8.       if(__nGroundPos != undefined)
  9.       {
  10.          this.nGroundPos = __nGroundPos;
  11.       }
  12.       else
  13.       {
  14.          this.nGroundPos = SideScroller.NegativeGround.DEFAULT_NEGATIVE_GROUND_POSITION;
  15.       }
  16.       this.mcRef._visible = false;
  17.       var _loc2_ = this.mcRef.getBounds(this.oParentObject.__get__ParentLayer().__get__Ref());
  18.       this.nMinX = _loc2_.xMin;
  19.       this.nMaxX = _loc2_.xMax;
  20.    }
  21.    function getGroundAt()
  22.    {
  23.       return this.nGroundPos;
  24.    }
  25.    function doDestroy()
  26.    {
  27.       delete this.oParentObject;
  28.    }
  29.    function get StartPos()
  30.    {
  31.       return this.nMinX;
  32.    }
  33.    function get EndPos()
  34.    {
  35.       return this.nMaxX;
  36.    }
  37. }
  38.